package com.hongkou.tvstation.common.codetable;

import java.util.List;

public class CodeTableServiceImpl implements CodeTableService {
	private CodeTableDao codeTableDao;

	public CodeTableDao getCodeTableDao() {
		return codeTableDao;
	}

	public void setCodeTableDao(CodeTableDao codeTableDao) {
		this.codeTableDao = codeTableDao;
	}

	public Long getCountFromCodeTable(String codeTable, String whereCause) {
		return codeTableDao.getCodeTableCount(codeTable, whereCause);
	}

	public String getCodeValue(String tableName, Object value) {
		return codeTableDao.getCodeValue(tableName, value);
	}

	public List<CodeTableValueInfo> getCodeTable(String tableName, String whereCause) {
		return codeTableDao.getCodeTable(tableName,whereCause);
	}

}
